ALSA: usb-audio: Don't avoid stopping the stream at disconnection
authorTakashi Iwai <tiwai@suse.de>
Sat, 6 Feb 2021 20:30:52 +0000 (21:30 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 19 Mar 2021 18:20:52 +0000 (18:20 +0000)
commitf31a7edac4e27883a46380835d843ba5eddf6e35
tree6522be8ec13c9a5a06cdef48531e29865d88258d
parentde43b4156416e7bd81fc05fc399eeda293cb7266
ALSA: usb-audio: Don't avoid stopping the stream at disconnection

commit 257d2d7e9e798305d65825cb82b0a7d1c0511e89 upstream

In the later patch, we're going to issue the PCM sync_stop calls at
disconnection.  But currently the USB-audio driver can't handle it
because it has a check of shutdown flag for stopping the URBs.  This
is basically superfluous (the stopping URBs are safe at disconnection
state), so let's drop the check.

Fixes: dc5eafe7787c ("ALSA: usb-audio: Support PCM sync_stop")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210206203052.15606-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[sudip: adjust context]
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name alsa-usb-audio-don-t-avoid-stopping-the-stream-at-disconnection.patch
sound/usb/endpoint.c
sound/usb/pcm.c